from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker, AsyncSession
from config.index import settings

engine = create_async_engine(settings.db_link(), pool_pre_ping=True)
SessionLocal = async_sessionmaker(engine, expire_on_commit=False, class_=AsyncSession)